package com.example.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.chat.beans.Token;
import org.apache.ibatis.annotations.Param;

public interface TokenMapper extends BaseMapper<Token> {
    void deleteLate(@Param("lastTime") long lastTime);

    void deleteByAdminIdAndToken(@Param("adminId") Integer userId,
                                 @Param("token") String token);
}
